Skip to content

Include model action fields in htmx requests#17

Merged
dzarlax merged 1 commit into
mainfrom
codex/model-actions-include-fix
Jun 16, 2026
Merged

Include model action fields in htmx requests#17
dzarlax merged 1 commit into
mainfrom
codex/model-actions-include-fix

Conversation

@dzarlax

@dzarlax dzarlax commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • include the local model action block in htmx requests so model_id/provider hidden fields are always submitted
  • add a template regression assertion for the include selector

Tests

  • go test -count=1 ./...

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@dzarlax, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 18 minutes and 6 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 82226435-d8df-42e0-b51f-2812ac68682d

📥 Commits

Reviewing files that changed from the base of the PR and between 9800357 and e35e717.

📒 Files selected for processing (2)
  • internal/adminapi/adminapi_test.go
  • internal/adminapi/templates/partials_models_row.html
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/model-actions-include-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dzarlax dzarlax merged commit 1f2f10d into main Jun 16, 2026
6 checks passed
@dzarlax dzarlax deleted the codex/model-actions-include-fix branch June 16, 2026 12:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e35e717fd6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<button class="btn btn--small {{if eq .Policy "free_verified"}}btn--ghost{{else}}btn--primary{{end}}"
hx-post="/models/check"
hx-include="#models-filters, closest [data-model-card]"
hx-include="#models-filters, closest .model-actions"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Split htmx includes so model fields are submitted

With the htmx 2.0.3 version pinned by the Dockerfile, extended selectors are only recognized when the whole hx-include value starts with closest; #models-filters, closest .model-actions is treated as a normal CSS selector list, so it matches the filter form but not the local action block. As a result the hidden model_id/provider inputs are still omitted for Check free/eval/override clicks, and the handlers keep returning model_id required; split/inherit the includes so .model-actions is actually serialized.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant